package top.zhangjianyong.tools.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.zhangjianyong.tools.entity.marirui.JJHOT;
import top.zhangjianyong.tools.mapper.JJHOTMapper;
import top.zhangjianyong.tools.service.mybatis.IJJHOTService;

/**
 * @author ： zhangjianyong
 * @date ： 2022/10/15 11:50 AM
 */
@Service
public class IJJHOTServiceImpl extends ServiceImpl<JJHOTMapper, JJHOT> implements IJJHOTService {

    @Override
    public int removeAll() {
        return baseMapper.deleteAll();
    }

    @Override
    public JJHOT qryOneByDm(String dm) {

        return lambdaQuery().eq(JJHOT::getDm, dm).one();
    }
}
